# 添加首页频道
def check_body_data_format(body_data: dict):
    channel_id = body_data.get('channel_id')
    banner_books_id = body_data.get('banner_books_id')
    show_books_id = body_data.get('show_books_id')
    hot_books_id = body_data.get('hot_books_id')
    if banner_books_id.find('[') == -1 or banner_books_id.find(']') == -1:
        return False
    if show_books_id.find('[') == -1 or show_books_id.find(']') == -1:
        return False
    if hot_books_id.find('[') == -1 or hot_books_id.find(']') == -1:
        return False
    a_home_dict = {
        "channel_id": channel_id,
        "banner_books_id": banner_books_id,
        "show_books_id": show_books_id,
        "hot_books_id": hot_books_id
    }
    return a_home_dict


